package cn.tedu.medicalmanagementsystem.user.service;

import cn.tedu.medicalmanagementsystem.base.response.JsonResult;
import cn.tedu.medicalmanagementsystem.user.pojo.dto.UserFavoriteAddParam;
import cn.tedu.medicalmanagementsystem.user.pojo.vo.UserFavoriteVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface UserFavoriteService {

    // 添加收藏
    JsonResult addFavorite(UserFavoriteAddParam param, Long userId);

    // 取消收藏
    JsonResult removeFavorite(Long escortId, Long userId);

    // 获取收藏列表
    JsonResult<List<UserFavoriteVO>> listFavorites(Long userId);

    // 检查是否已收藏
    JsonResult<Boolean> checkFavorite(Long escortId, Long userId);
}
